// Andrew Hickey & Steven Steffen
// CS412 Rahimi
// Summer 2010
// Project Monster Class.
// 
//

import java.io.*;

public class Monster
{
	private int hp, attack, defense;
	private boolean alive;
	
	public Monster()
	{
		hp = 20;
		attack = 1;
		defense = 15;
		alive = true;
	}
	
	public void takeDamage(int damage)
	{
		hp -= damage;
		if (hp < 1)
			alive = false;
	}
	
	public boolean isAlive(){return alive;}
	public int getAttack(){return attack;}
	public int getDefense(){return defense;}
}